<template>
    <div class="button-supply">
        <br><i>#猜你想要#</i><br>
        <el-button type="primary" @click="buttonSupplyClicked">{{ supply }}</el-button><br>
    </div>
</template>

<script>
import { ElButton } from 'element-plus';
import { dealSupplyRequest } from '@/functions/ButtonSupplyFunction';

export default{
    name:"button-supply",
    components:{
        ElButton,
    },
    props:{
        supply:String,
    },
    methods:{
        buttonSupplyClicked(){
            dealSupplyRequest(this.supply);
        }
    }
}
</script>

<style scoped>
.el-button{
    margin-bottom: 3pt;
    width: 20vw;
}
</style>